from kivyx.lib import runTouchApp

from amaze.kivy.maze import MazeView
from amaze import Maze, Player
from amaze.directions import R, L, U, D


maze = Maze(100, 100)
maze.generate(seed=0)
p = Player("foo", maze[1, 1])
# p.path.append(R, 2)
# p.path.append(U, 2)
# p.path.append(R, 2)
# p.path.append(D, 2)
# p.path.append(R, 2)
# p.path.append(U, 6)
# p.path.append(L, 2)
# p.path.append(U, 2)
# p.path.append(R, 2)
# p.path.append(U, 6)
print p.path


maze.init()
runTouchApp(MazeView(maze))
